package com.laowang.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 消息通知对象 tb_notice
 *
 * @author laowang
 * @date 2022-06-23
 */
@NoArgsConstructor
@Data
public class TbNotice implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Long noticeId;

    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题", required = false)
    private String title;

    /**
     * 类型 1:消息类型11;2:消息类型22;3:消息类型33;4:消息类型44;5:消息类型55
     */
    @Excel(name = "类型 1:消息类型11;2:消息类型22;3:消息类型33;4:消息类型44;5:消息类型55")
    @ApiModelProperty(value = "类型 1:消息类型11;2:消息类型22;3:消息类型33;4:消息类型44;5:消息类型55", required = false)
    private Long type;

    /**
     * 消息所有者
     */
    @Excel(name = "消息所有者")
    @ApiModelProperty(value = "消息所有者", required = false)
    private String mobile;

    /**
     * 关联的主题no
     */
    @Excel(name = "关联的主题no")
    @ApiModelProperty(value = "关联的主题no", required = false)
    private String themeNo;

    /**
     * 是否已读 0 未读; 1 已读
     */
    @Excel(name = "是否已读 0 未读; 1 已读")
    @ApiModelProperty(value = "是否已读 0 未读; 1 已读", required = false)
    private Long isRead;

    /**
     * 公告的内容
     */
    @Excel(name = "公告的内容")
    @ApiModelProperty(value = "公告的内容", required = false)
    private String content;

    /**
     * 公告发布者
     */
    @Excel(name = "公告发布者")
    @ApiModelProperty(value = "公告发布者", required = false)
    private String publisher;

    /**
     * 公告截至时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "公告截至时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "公告截至时间", required = false)
    private Date endTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
}
